export default {
  namespaced: true,
  state: {
    token:JSON.parse(localStorage.getItem('token')) || ""
  },
  getters: {
    //计算出token值
    token(state){
      return state.token
    }
  },
  mutations: {
    // 设置token值
    setToken(state,value){
      state.token = value
    },
    getToken(state){
      return state.token
    }
  },
  actions: {
  },
  modules: {
  }
}